<!DOCTYPE html>

<html lang="en">

<head>

    <meta charset="UTF-8">

    <title>{$item.order_number}</title>

    <!--<style>-->

        <!--body{text-align: center;}-->

        <!--.table-c  table{border-right:1px solid #000;border-bottom:1px solid #000; margin-bottom: 20px;}-->

        <!--.table-c  table td{border-left:1px solid #000;border-top:1px solid #000; }-->

        <!--.table-d  table{border-right:0px solid #000;border-bottom:0px solid #000}-->

        <!--.table-d  table td{border-left:1px solid #000;border-top:1px solid #000;}-->

        <!--ul,li{ list-style: none;}-->

        <!--li{ display: inline-block; line-height:24px ;}-->

    <!--</style>-->

</head>

<div class="print">

    <style>

        body{text-align: center;}

        .table-c  table{border-right:1px solid #000;border-bottom:1px solid #000; margin-bottom: 20px;}

        .table-c  table td{border-left:1px solid #000;border-top:1px solid #000; padding: 2px 4px;font-size: 14px;}

        .table-d  table{border-right:0px solid #000;border-bottom:0px solid #000}

        .table-d  table td{border-left:1px solid #000;border-top:1px solid #000;}

        ul,li{ list-style: none;}

        li{ display: inline-block; }

    </style>

    <div class="table-c" id="printArea">

        <table border="0" cellspacing="0" cellpadding="0">

            <thead></thead>

            <tbody >

            <tr>

                <td>{in name="$item.order_type" value="1,3"}包含商品{else/}所属分类{/in}</td>

                <td>{$item.cat_name}{notempty name="$item.one_cat"}->{/notempty}{$item.one_cat}</td>

                <td>订单编号</td>

                <td>

                    {notempty name=":input('gid')"}

                    {$gift_order_twoabc}

                    {else/}

                    {$item.order_number}

                    {/notempty}

                </td>
				<td class="right_td r">打印账号</td>
                <!--{eq name=":request()->controller()" value="GiftOrder"}

                <td class="right_td r">打印账号</td>

                {/eq}-->

                <td>验证识别码</td>

            </tr>

            <tr>

                <td>服务门店</td>

                <td>{:model('shop')->where('id',$item.shop_id)->value('shop_title')}</td>

                <td>下单/退款 时间</td>

                <td>{$item.create_time}{in name="$item.status" value="10,11,12"} / {$item.refund_create_time}{/in}</td>
				<td class="right_td r">{:session('manage_user')}</td>
                <!--{eq name=":request()->controller()" value="GiftOrder"}

                <td class="right_td r">{:session('manage_user')}</td>

                {/eq}-->
            <td id="xinma">
            <?php
           /* function GetfourStr($len) 
            { 
              $chars_array = array( 
                "0", "1", "2", "3", "4", "5", "6", "7", "8", "9",
                "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", 
                "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", 
                "w", "x", "y", "z", "A", "B", "C", "D", "E", "F", "G", 
                "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", 
                "S", "T", "U", "V", "W", "X", "Y", "Z", 
              ); 
              $charsLen = count($chars_array) - 1; 
              
              $outputstr = ""; 
              for ($i=0; $i<$len; $i++) 
              { 
                $outputstr .= $chars_array[mt_rand(0, $charsLen)]; 
              } 
              return $outputstr; 
            } 
            echo GetfourStr(4).$item['id'].GetfourStr(3);*/
            ?>{$item.id}-1
			</td>
                
            </tr>

            <tr>

                <td>{in name="$item.order_type" value="1,3"}买家账号{else/}用户账号{/in}</td>

                <td>{$item.username}({$item.car_number})</td>

                <td >

                    {notempty name=":input('order_number_two')"}

                    车主姓名

                    {else/}

                    车牌号

                    {/notempty}

                </td>

                <td class="jia_td">

                    <span style="display: none;">131</span>

                    {notempty name=":input('order_number_two')"}

                    {:input('car_name')}

                    {else/}

                    {notempty name="$item.car_number"}<select style="width: 100%;height: 100%;border: none;line-height: 30px; font-size: 16px;">

                    {volist name="$member_car_list4" id="vo"}

                    <option >{$vo}</option>

                    {/volist}

                </select>{else}<input style="width: 100%;height: 100%; font-size: 16px; border: none;text-align: center" class="jia_add_int" type="text"/>{/notempty}

                    {/notempty}





                </td>

                {eq name=":request()->controller()" value="GiftOrder"}
{notempty name=":input('order_number_two')"}
                <td class="right_td r">

                    

                    车牌号

                    {else/}

                    

                </td>
{/notempty}
                {/eq}
				<!-------------------------------------------------------------------------->
                 <script type="text/javascript" src="/qrcode/jquery.min.js"></script>
            <script type="text/javascript" src="/qrcode/qrcode.min.js"></script>
            <style>
            #qrcode {
			  width:100px;
			  height:100px;
			  display:inline;
			  float:left;
			
			}  
			#qrcode img{
				 width:100px;
			  height:100px;
			  display:inline;
			  float:left;
			
			}
            </style>
                <td style=" overflow:hidden;" rowspan="3"><!----------------------------->
                <div style=" width:100px; height:100px; display: inline; float:left; overflow:hidden">
                <input id="text" type="text" value="http://lihai.xmdonkey.com/index.php/index/storemember/order_content?id={$item.id}&shop_id={$item.shop_id}&pici=1" style=" display:none;" />
                <div id="qrcode"></div>
                </div>
                <!------------------------------>
                <!-------------------------------------------------------------------------->
                {notempty name=":input('order_number_two')"}
                 {else}
                 <td></td>
                 {/notempty}

            </tr>

            <tr>

                <td>品牌型号</td>

                <td>

                    {notempty name=":input('order_number_two')"}

                    {:input('brand_models')}

                    {else/}

                    {notempty name="$item.brand_number"}{$item.brand_number}{else}<input style="width: 100%;height: 100%; font-size: 16px; border: none;text-align: center" type="text"/>{/notempty}

                    {/notempty}

                </td>

                <td>{notempty name=":input('order_number_two')"}

                    车主电话

                    {else/}

                    车辆识别码

                    {/notempty}

                </td>

                <td>





                    {notempty name=":input('order_number_two')"}

                    {:input('car_tel')}

                    {else/}

                    {notempty name="$item.id_code"}{$item.id_code}{else}

                    <input style="width: 100%;height: 100%; font-size: 16px; border: none;text-align: center" type="text"/>

                    {/notempty}

                    {/notempty}



                </td>

                {eq name=":request()->controller()" value="GiftOrder"}

                {notempty name=":input('order_number_two')"}<td class="right_td r">{:input('car_number2')}</td>{/notempty}

                {/eq}
 				{notempty name=":input('order_number_two')"}
                 {else}
                 <td></td>
                 {/notempty}
                

            </tr>

            <tr>

                <td>服务金额</td>

                <td>{$item.amount}</td>

                <td>

                    {notempty name=":input('order_number_two')"}

                    车辆识别码

                    {else/}

                    <!--备注-->

                    {/notempty}

                </td>

                <td>

                    {notempty name=":input('order_number_two')"}

                    {:input('car_code')}

                    {else/}

                    <!--<input style="width: 100%;height: 100%; font-size: 16px; border: none;text-align: center" type="text" value="{$item.explain}"/>-->

                    {/notempty}

                </td>

                {eq name=":request()->controller()" value="GiftOrder"}
		
               {notempty name=":input('order_number_two')"} <td ><input style="width: 100%;height: 100%; font-size: 16px; border: none;text-align: center" type="text" value=""/></td>{/notempty}

                {/eq}
                 {notempty name=":input('order_number_two')"}
                 {else}
                 <td></td>
                 {/notempty}

            </tr>

            <tr id="shaixuan">

                <td>备注</td>

                <td colspan="4"><input style="width: 100%;height: 100%; font-size: 16px; border: none;text-align: center" type="text" value="{$item.explain}"/></td>

                <td></td>

            </tr>



            {eq name="$item.single_id" value="11"}

            <tr id="shaixuan">

                <td>轮胎寄存时间</td>

                <td>{$item.start_time}</td>

                <td>{$item.end_time}</td>

                {eq name=":request()->controller()" value="GiftOrder"}

                <td class="right_td r"></td>

                {else/}

                <td>{$item.single_explain}</td>

                {/eq}

                <td class="hide"></td>

            </tr>

            {/eq}
			
			<div >
            <!--{volist name="$shop_assignor_records" id="vo"}

            <tr class="service_people" >
				
                {eq name="key" value="0"}

                <td rowspan="{:count($shop_assignor_records)}" class="hide_class">服务人员提成</td>

                <td rowspan="{:count($shop_assignor_records)}">服务人员提成</td>

                {/eq}

                <td colspan="1">{$vo.name}{if condition="request()->controller() neq 'GiftOrder'"}({$vo.type|default=''}){/if}</td>

                <td rowspan="1">

                    {if condition="request()->controller() eq 'ServiceOrder'"}{$vo.assignor_content}{/if}

                    {if condition="request()->controller() eq 'Order'"}{$vo.title}{/if}

                    {if condition="request()->controller() eq 'GiftOrder'"}{$vo.assignor_content}{/if}

                </td>

                <td colspan="1">{$vo.assignor_price} 元</td>
				<td colspan="1" >{$vo.create_time}</td>
                <!--{eq name=":request()->controller()" value="GiftOrder"}

                <td colspan="1" class="right_td r">{$vo.create_time}</td>

                {/eq}

                <td  style=" border-bottom:1px solid #000" ><label id="yincang_de"><input type="checkbox" t="{$key}" value="{$vo.id|default=''}">{$vo.id|default=""}</label></td>
            </tr>
			
            {/volist}-->
			</div>
            </tbody>

        </table>
	<script>
    var qrcode = new QRCode("qrcode");

		function makeCode () {      
			var elText = document.getElementById("text");
			
			if (!elText.value) {
				alert("Input a text");
				elText.focus();
				return;
			}
			
			qrcode.makeCode(elText.value);
		}
		
		makeCode();
		
		$("#text").
		on("blur", function () {
			makeCode();
		}).
		on("keydown", function (e) {
			if (e.keyCode == 13) {
				makeCode();
			}
		});
    </script>
    </div>

    <!--<div class="table-c" id="printArea">-->

        <!--<table  border="0" cellspacing="0" cellpadding="0">-->

            <!--<thead></thead>-->

            <!--<tbody>-->

            <!--<tr><td>{in name="$item.order_type" value="1,3"}包含商品{else/}所属分类{/in}</td><td><span style="visibility: hidden">{$item.cat_name}{notempty name="$item.one_cat"}->{/notempty}{$item.one_cat}</span></td><td>订单编号</td><td><span style="visibility: hidden">{$item.order_number}</span></td></tr>-->

            <!--<tr><td>服务门店</td><td><span style="visibility: hidden">{:model('shop')->where('id',$item.shop_id)->value('shop_title')}</span></td><td>下单退款时间</td><td><span style="visibility: hidden">{$item.create_time}{in name="$item.status" value="10,11,12"} / {$item.refund_create_time}{/in}</span></td></tr>-->

            <!--<tr><td>{in name="$item.order_type" value="1,3"}买家账号{else/}用户账号{/in}</td><td><span style="visibility: hidden">{$item.username}</span></td><td>车牌号</td><td><span style="visibility: hidden">{$item.car_number}</span></td></tr>-->

            <!--<tr><td>品牌型号</td><td><span style="visibility: hidden">{$item.brand_number}</span></td><td>车辆识别码</td><td><span style="visibility: hidden">{$item.id_code}</span></td></tr>-->

            <!--<tr><td>服务金额</td><td><span style="visibility: hidden">{$item.amount}</span></td><td>备注</td><td><span style="visibility: hidden">{$item.explain}</span></td></tr>-->

            <!--<tr>-->

                <!--<td>服务人员提成</td><td><span style="visibility: hidden"></span></td>-->

            <!--</tr>-->



            <!--</tbody>-->

        <!--</table>-->

    <!--</div>-->

    <!--<div class="table-c" id="printArea">-->

        <!--<table  border="0" cellspacing="0" cellpadding="0">-->

            <!--<thead></thead>-->

            <!--<tbody>-->

            <!--<tr><td>{in name="$item.order_type" value="1,3"}包含商品{else/}所属分类{/in}</td><td><span style="visibility: hidden">{$item.cat_name}{notempty name="$item.one_cat"}->{/notempty}{$item.one_cat}</span></td><td>订单编号</td><td><span style="visibility: hidden">{$item.order_number}</span></td></tr>-->

            <!--<tr><td>服务门店</td><td><span style="visibility: hidden">{:model('shop')->where('id',$item.shop_id)->value('shop_title')}</span></td><td>下单退款时间</td><td><span style="visibility: hidden">{$item.create_time}{in name="$item.status" value="10,11,12"} / {$item.refund_create_time}{/in}</span></td></tr>-->

            <!--<tr><td>{in name="$item.order_type" value="1,3"}买家账号{else/}用户账号{/in}</td><td><span style="visibility: hidden">{$item.username}</span></td><td>车牌号</td><td><span style="visibility: hidden">{$item.car_number}</span></td></tr>-->

            <!--<tr><td>品牌型号</td><td><span style="visibility: hidden">{$item.brand_number}</span></td><td>车辆识别码</td><td><span style="visibility: hidden">{$item.id_code}</span></td></tr>-->

            <!--<tr><td>服务金额</td><td><span style="visibility: hidden">{$item.amount}</span></td><td>备注</td><td><span style="visibility: hidden">{$item.explain}</span></td></tr>-->

            <!--<tr>-->

                <!--<td>服务人员提成</td><td ><span style="visibility: hidden"></span></td>-->

            <!--</tr>-->

            <!--</tbody>-->

        <!--</table>-->

    <!--</div>-->



</div>

<button type="button"  class="btn btn-danger" id="sp2">重新选择</button>

<button type="button"  class="btn btn-danger" id="sp">隐藏服务人员提成</button>

<button type="button"  class="btn btn-danger"  id="btnPrint">打印订单</button>
<button type="button"  class="btn btn-danger" onClick="pici({$item.id})">选择批次</button>
<!--<button type="button"  class="btn btn-danger"  id="yincang">隐藏提成</button>-->
<style>
	.pici{
		width:100%;
		height:100%;
		position:fixed;
		top:0;
		left:0;
		background-color:rgba(0,0,0,0.5);
	}
	.pici1{
		width:400px;
		height:400px;
		display:inline;
		float:left;
		background:#ffffff;
		position:absolute;
		left:50%;
		margin-left:-200px;
		top:50%;
		margin-top:-200px;
	}
	.pici2{
		width:400px;
		height:30px;
		display:inline;
		float:left;
		background-color:#00CCFF;
		text-align: center;
		font-size:20px;
		font-family:"微软雅黑";
		color:#ffffff;
		line-height:30px;
	}
	.pici3{
		width:380px;
		margin-top:30px;
		margin-left:10px;
		height:40px;
		display:inline;
		float:left;
		text-align: left;
		font-size:20px;
		font-family:"微软雅黑";
		color:#333333;
		line-height:40px;
	}
	.pici4{
		width:200px;
		height:40px;
		display:inline;
		float:left;
		background-color:#00CCFF;
		text-align: center;
		font-size:20px;
		font-family:"微软雅黑";
		color:#ffffff;
		line-height:40px;
		border:0px;
		margin-left:100px;
		margin-top:30px;
	}
</style>
<div class="pici" id="pici1" style=" display:none">
	<div class="pici1">
    	<div class="pici2" onClick="guanbi_de()">立即关闭</div>
        
        	<select name="pici" id="pici" class="pici3">
            <option value="">请选择批次</option>
               {volist name="$pici_list" id="vo"}
               <option value="{$vo.pici}">第{$vo.pici}批次</option>
               {/volist}
            </select>
            <button class="pici4" onClick="pici_fuzhi()">确认选择(点击两下)</button>
    </div>
</div>
<script src="/jquery.js"></script>

<script src="/jquery.PrintArea.js" type="text/JavaScript" language="javascript"></script>

<script src="__STATIC__/js/layer.js"></script>
<script>
	function pici(order_id){
		var pici = document.getElementById("pici1");
     	pici.style.display="block";
	}
	function guanbi_de(){
		var pici = document.getElementById("pici1");
     	pici.style.display="none";
	}
	function pici_fuzhi(){
		var pici_fuzhi = $('#pici option:selected') .val();
		if(pici_fuzhi==''){
			alert('请选择批次');	
		}else if(pici_fuzhi!=''){
			$('#text').val('http://lihai.xmdonkey.com/index.php/index/storemember/order_content?id={$item.id}&shop_id={$item.shop_id}&pici='+pici_fuzhi);
			if ($("#ticheng").length > 0) {
				for (var i=0;i<=6666666;i++){
					document.getElementById("ticheng").remove();
					console.log($("#ticheng").html());
				}
			　　//document.getElementById("ticheng").remove();
			}else{
			　//　alert('对象不存在');
			}
			//document.getElementById("ticheng").removeChild();
			//alert('http://lihai.xmdonkey.com/index.php/index/storemember/order_content?id={$item.id}&shop_id={$item.shop_id}&pici='+pici_fuzhi);
			makeCode();
				/*****************************/
				$.ajax({
					type: "post",
					url: "/index.php/console/Order/dingdan_ajax/",
					data: {pici_id:pici_fuzhi,order_id:{$item.id},level:{:session('role_id')},manage_id:{:session('manage_id')},type:1},//提交到demo.php的数据
					dataType: "json",//回调函数接收数据的数据格式
					success: function(msg){
					var json = JSON.parse(msg);
						if(json.res=='ok'){
							//alert(pici_fuzhi+','+order_id);
							var d1 = document.getElementById('shaixuan'); 
							d1.insertAdjacentHTML('afterend', json.massage);
							//document.getElementById("shaixuan").appendHTML(json.massage);
							 console.log(json.massage);
							//window.location.reload();
							//var yuming = window.location.host;
							//window.location =json.tiaozhuan;
						}
					
					},
					error:function(msg){
					  console.log(msg);
					}
					});
				/*****************************/	
			var mima =document.getElementById("xinma").innerText;
			var mima1 = mima.substring(0,mima.indexOf('-')+1);
			//alert(mima1);
			$("#xinma").html(mima1);
			document.getElementById("xinma").append(pici_fuzhi);
			var pici = document.getElementById("pici1");
     		pici.style.display="none";
			
		}
		
	}
</script>
<script>

    /*function yinchang(t) {

        var num =  $('input[type=checkbox]:checked').length;

        var v = [];

        $.each($('input:checkbox:checked'),function(){

            v.push($(this).val());

        });

        $.ajax({

            type: "POST",

            url: "{:url('index/order/is_hidden')}",

            data: {id:v},

            dataType: "json",

            success: function(ret){

                //ret == true == 1/*?

                if(ret.code == 200){

                    console.log(ret);

                    //alert(ret.message);

                    setTimeout(function () {

                        history.go(0);

                    },5000);



                }

                else{

                    //alert(ret.message);

                    history.go(0);

                }

            }



        });

//        alert(v);

    }

//    $("#sp").click(function(){

//        $('.service_people').toggle();

//

//    });

//var a =$.getScript("/get.js");

//console.log(a);*/

function haha() {

//    window.onload = function () {

//    var a =$.getScript("/jquery.PrintArea.js");

//    //alert(a);

//    };

}

$(document).ready(function(){

    $("#sp").toggle(

        function(){

            //$(".service_people").css("background-color","green");},

            $(".service_people").attr("style","display:none");

            $(".right_td").attr("style","display:none");

            $(this).text('隐藏服务人员提成');

            },

        function(){

            $(".service_people").removeAttr("style");

            $(".right_td").removeAttr("style");

            $(this).html('显示服务人员提成');

            //$(".service_people").css("background-color","red");

        }



//            ,

//        function(){

//            $("body").css("background-color","yellow");}

        );

});

$('#sp2').click(function(){

    history.go(0);

});

$(document).ready(function(){

    $(".right_td").toggle(

        function(){

            var current_time = $(this).text();//当前点击时间

            var last_time = ''; //默认没有点击时间是空



            //$(".service_people").css("background-color","green");},

            $('.right_td').each(function(){

                var other_time = $(this).text();

                //$(this).hide();

                $('.service_people').hide();

                if(current_time == other_time){

                    //$(this).remove();

                     last_time = current_time; //

                }

            });

            var i = 0;

            var arr = [];

            $('.service_people .right_td').each(function(index,item){ //循环右侧的right_td

                var other_time2 = $(this).text(); //获取循环的各个时间

                if(current_time == other_time2){

                    //$(this).remove();

                    i++; //获得同一时间段有多少个元素

                    var cont = $(this).parent().find('td').eq(0).text();

                    $(this).parent().show(); //同一时间段各个显示

                    arr.push(index); //把选中的同一时间段 索引放入数组

//                    if(i == 1 && cont != '服务人员提成'){

//                         var str = '<td rowspan="'+i+'">服务人员提成</td>';

//                        $(this).parent().prepend(str);

//                    }

                    //if(index == 0){ //不等于0说明不是第一组 0 1一组也可能多个 但是只执行一次

//                    if(cont != '服务人员提成'){

//

//                    }



                    //}



//                    if(index != 0){

//                        var str = '<td rowspan="'+i+'">服务人员提成</td>';

//                        $(this).parent().prepend(str);

//                    }

                }







            });

            console.log(arr);

            var ii = $.inArray(0, arr);

            if(ii == -1){ //如果不包含索引 0 就得添加 第一个td 第一个元素加一次可以了就

                //alert(arr[0]);//第一个索引

                var str = '<td rowspan="'+i+'">服务人员提成</td>';

                $('.service_people').eq(arr[0]).prepend(str);



            }



        },

        function(){

//            $(".service_people").removeAttr("style");

//            $(".right_td").removeAttr("style");

//            $(this).html('显示服务人员提成');

            //$(".service_people").css("background-color","red");

        }



//            ,

//        function(){

//            $("body").css("background-color","yellow");}

    );

});



$('.hide_class').hide();

$("#btnPrint").click(function () {

	
	$("#yincang_de").hide();
    var num =  $('input[type=checkbox]:checked').length;

    var v = [];

    var nv = [];

    var kkk = [];

    $.each($('input:checkbox:checked'),function(kk,vv){

        var k = $(this).attr('t');

        kkk.push(k);

        v.push($(this).val());

    });
	


    $.each($('input:checkbox:not(:checked)'),function(){

       $(this).parent().parent().parent().hide();
	   
	   

    });



//    $.each($('input:checkbox'),function (key,value) {

//        alert(key);

//    });

    var ii = $.inArray(0, kkk);

   // $('[t="'+kkk[0]+'"]').parent().parent().parent().prepend('<td rowspan="'+num+'">服务提成</td>');

//    alert(kkk[0]);

//    if(ii == -1){ //如果不包含索引 0 就得添加 第一个td 第一个元素加一次可以了就

//        //alert(arr[0]);//第一个索引

//        console.log(v);

//        var str = '<td rowspan="1">服务人员提成123</td>';

//        //$('.service_people').eq(0).show();

//    }

    if(kkk[0] != 0){

        $('[t="'+kkk[0]+'"]').parent().parent().parent().prepend('<td rowspan="'+num+'">服务提成</td>');

    }

//    $('.hide').hide();

    $('.hide').hide();

    $('.h').hide();

    if(!num){

        $('table').hide();

    }
	var pici_fuzhi = $('#pici option:selected') .val();
	var level = '{:session('role_id')}';
	if(pici_fuzhi==''){
		alert('请选择批次');
		window.location.reload();
	}
	else{
	if(level=='5'){
		
	}
	document.getElementById("pici").options.length=0;
	
	
	
	/*************************/
				$.ajax({
					type: "post",
					url: "/index.php/console/Order/dingdan_ajax/",
					data: {pici_id:pici_fuzhi,order_id:{$item.id},level:{:session('role_id')},manage_id:{:session('manage_id')},type:2},//提交到demo.php的数据
					dataType: "json",//回调函数接收数据的数据格式
					success: function(msg){
					var json = JSON.parse(msg);
						if(json.res=='ok'){
							$("#pici").html(json.massage);
							console.log(json.massage);
						}
					
					},
					error:function(msg){
					  console.log(msg);
					}
					});
	  }				
				/*****************************/	
//    $('.r').hide();

    /*$.ajax({

        type: "POST",

        url: "{:url('index/order/is_hidden')}",

        data: {id:v},

        dataType: "json",

        success: function(ret){

            //ret == true == 1/*?

            if(ret.code == 200){

                console.log(ret);

                //alert(ret.message);

//                setTimeout(function () {

//                    history.go(0);

//                },5000);



            }

            else{

                //alert(ret.message);

                //history.go(0);

            }

        }



    });*/

//    alert(nv);

    $(".print").printArea();

});

//window.onload = function () {

//    $("#btnPrint").on('click', function () {

//        $(".print").printArea();

//    });

//};





</script>

</body>



</html>



<!--<script>-->

    <!--$(".jia_td").click(function(){-->

        <!--$(".jia_add_int").show();-->

        <!--$(".jia_add_int").prev().hide();-->

        <!--$(".jia_add_int").focus();-->

    <!--});-->

    <!--$(".jia_add_int").change(function(){-->

<!--//        console.log($(this).val());-->

        <!--var a = ($(this).val());-->

        <!--$(this).prev().text(a);-->

    <!--});-->

    <!--$(".jia_add_int").blur(function () {-->

        <!--$(".jia_add_int").hide();-->

        <!--$(this).prev().show();-->

    <!--})-->

<!--</script>-->

